//
//  MYCreditsMallRuleVC.swift
//  MuYing
//
//  Created by tbb on 2020/3/3.
//  Copyright © 2020 TBB. All rights reserved.
//

import UIKit

class MYCreditsMallRuleVC: YQMYBaseViewController,UITextViewDelegate {

    @IBOutlet weak var ruleTextView: UITextView!
    override func viewDidLoad() {
        super.viewDidLoad()
        self.navigationItem.title = kYQLSSwift("积分规则");
        self.ruleTextView.delegate = self;
        YQPNetWorkingManager.sendPostRequest("/api/integral/rule", parameters: nil, success: { (baseModel) in
            if baseModel.code == 0 {
                if let dataDict = baseModel.data as? [String : Any] {
                    self.ruleTextView.text = dataDict["content"] as? String;
                }
            }
        }) { (code, errMsg) in
            
        }
    }
}

extension MYCreditsMallRuleVC {
    func textViewShouldBeginEditing(_ textView: UITextView) -> Bool {
        return false;
    }
}
